<div class="esriAnalysis">
  <div data-dojo-type="dijit/layout/ContentPane" style="margin-top:0.5em; margin-bottom: 0.5em;">
    <div data-dojo-attach-point="_fbcrToolContentTitle" class="analysisTitle">
      <table class="esriFormTable" >
        <tr>
          <td class="esriToolIconTd"><div class="forestBasedClassificationAndRegressionIcon"></div></td>
          <td class="esriAlignLeading esriAnalysisTitle twobythree-width" data-dojo-attach-point="_toolTitle">
            <label data-dojo-attach-point="_titleLbl">${i18n.forestBasedClassificationAndRegression}</label>
            <nav class="breadcrumbs"  data-dojo-attach-point="_analysisModeLblNode">
              <a href="#" class="crumb breadcrumbs__modelabel" data-dojo-attach-event="onclick:_handleModeCrumbClick" data-dojo-attach-point="_analysisModeCrumb"></a>
              <a href="#" class="crumb is-active" data-dojo-attach-point="_analysisTitleCrumb" style="font-size:16px;">${i18n.forestBasedClassificationAndRegression}</a>
            </nav>
          </td>
          <td>
            <div class="esriFloatTrailing" style="padding:0;">
              <div class="esriFloatLeading">
                <a href="#" class='esriFloatLeading helpIcon' esriHelpTopic="toolDescription"></a>
              </div>
              <div class="esriFloatTrailing">
                <a href="#" data-dojo-attach-point="_closeBtn" title="${i18n.close}" class="esriAnalysisCloseIcon"></a>
              </div>
            </div>
          </td>
        </tr>
      </table>
    </div>
    <div class="separatorLine"></div>
  </div>
  <div data-dojo-attach-point="_stackDiv" class="fullSpread"></div>
  <div data-dojo-type="dijit/layout/ContentPane" class="fullSpread" data-dojo-attach-point="_taskPane">
    <div>
      <label class="analysisTitle">${i18n.selectGoal}</label>
    </div>
    <div class="padTop05" data-dojo-attach-point="_goalNode1" data-dojo-type="esri/dijit/analysis/AnalysisToolItem" data-dojo-props="helpTopic:'train',name:'${i18n.trainGoal}',toolIcon:'mlFitIcon'"></div>
    <div class="padTop05" data-dojo-attach-point="_goalNode2" data-dojo-type="esri/dijit/analysis/AnalysisToolItem" data-dojo-props="helpTopic:'trainAndPredict',name:'${i18n.trainAndPredictGoal}',toolIcon:'mlFitAndPredictIcon'"></div>
  </div>
  <div data-dojo-type="dijit/layout/ContentPane" class="fullSpread" data-dojo-attach-point="_toolPane">
    <div data-dojo-type="dijit/form/Form" data-dojo-attach-point="_form" readOnly="true">
      <table class="esriFormTable"  data-dojo-attach-point="_fbcrTable">
        <tbody>
        <!--A Line/Horzontal Divider-->
        <tr data-dojo-attach-point="_titleRow" style="display: none;">
          <td colspan="3" class="sectionHeader one-width" data-dojo-attach-point="_fbcrToolDescription"></td>
        </tr>
        <!--Input Layer | Title-->
        <tr data-dojo-attach-point="_analysisLabelRow">
          <td colspan="2" class="width-90 padBottom0">
            <label class="esriFloatLeading  esriTrailingMargin025 esriAnalysisNumberLabel">${i18n.oneLabel}</label>
            <label class="esriAnalysisStepsLabel">${i18n.inFeaturesLabel}</label>
          </td>
          <td class="shortTextInput padBottom0">
            <a href="#" class='esriFloatTrailing helpIcon' esriHelpTopic="inFeatures"></a>
          </td>
        </tr>
        <!--Input Layer | Select Box Widget-->
        <tr data-dojo-attach-point="_selectAnalysisRow">
          <td  colspan="3" class="padTop0">
            <select class="esriLeadingMargin1 longInput esriLongLabel"  style="margin-top:1.0em;" data-dojo-type="dijit/form/Select" data-dojo-attach-point="_analysisSelect" data-dojo-props="required:true" data-dojo-attach-event="onChange:_handleAnalysisLayerChange"></select>
          </td>
        </tr>
        <!--Choose the field to predict | Title-->
        <tr>
          <td colspan="2">
            <label data-dojo-attach-point="_labelOne" class="esriFloatLeading esriTrailingMargin025 esriAnalysisNumberLabel">${i18n.twoLabel}</label>
            <label data-dojo-attach-point="_polylabel" class="esriAnalysisStepsLabel">${i18n.variablePredictLabel}</label>
          </td>
          <td class="shortTextInput">
            <a href="#" class='esriFloatTrailing helpIcon' esriHelpTopic="variablePredict"></a>
          </td>
        </tr>
        <!-- Choose field to model | Select widget -->
        <tr data-dojo-attach-point="_selectAnalysisRow">
          <td class="padTop0 twobythree-width">
            <select class="esriLeadingMargin1 longInput esriLongLabel"  style="margin-top:1.0em;" data-dojo-type="dijit/form/Select" data-dojo-attach-point="_dependentFieldSelect" data-dojo-props="required:true" data-dojo-attach-event="onChange:_handleDependentFieldChange"></select>
          </td>
          <td colspan="2">
            <input data-dojo-attach-point="_dependentFieldCheckBox" type="checkbox" data-dojo-type="dijit/form/CheckBox"/><label data-dojo-attach-point="_dependentFieldCheckBoxLabel"> ${i18n.categorical}</label>
          </td>
        </tr>
        <!--Choose the explanatory variable | Title-->
        <tr>
          <td colspan="2">
            <label class="esriFloatLeading esriTrailingMargin025 esriAnalysisNumberLabel">${i18n.threeLabel}</label>
            <label class="esriAnalysisStepsLabel">${i18n.chooseExplanatoryField}</label>
          </td>
          <td class="shortTextInput">
            <a href="#" class='esriFloatTrailing helpIcon' esriHelpTopic="explanatoryVariables" data-dojo-attach-point="_outputLayerHelpNode"></a>
          </td>
        </tr>
        <!--Choose the explanatory variable | Component Widget-->
        <tr data-dojo-type="esri/dijit/analysis/components/FieldAndCategoricalCheck/FieldAndCategoricalCheck" data-dojo-attach-point="_fieldAndCategoricalCheckComponent">
        </tr>
        <!--Choose the featuresToPredict layer | Title-->
        <tr data-dojo-attach-point="_featuresToPredictTitle">
          <td colspan="2">
            <label class="esriFloatLeading esriTrailingMargin025 esriAnalysisNumberLabel">${i18n.fourLabel}</label>
            <label class="esriAnalysisStepsLabel">${i18n.chooseFeaturesToPredict}</label>
          </td>
          <td class="shortTextInput">
            <a href="#" class='esriFloatTrailing helpIcon' esriHelpTopic="featuresToPredict"></a>
          </td>
        </tr>
        <!--Input Layer | Select Box Widget-->
        <tr data-dojo-attach-point="_featuresToPredictWidget">
          <td  colspan="3" class="padTop0">
            <select class="esriLeadingMargin1 longInput esriLongLabel"  style="margin-top:1.0em;" data-dojo-type="dijit/form/Select" data-dojo-attach-point="_featuresToPredictSelect" data-dojo-attach-event="onChange:_handleFeaturesToPredictChange"></select>
          </td>
        </tr>
        <!--Choose the explanatory variable | Title-->
        <tr data-dojo-attach-point="_addExplanatoryFieldsTitle">
          <td colspan="2">
            <label class="esriFloatLeading esriTrailingMargin025 esriAnalysisNumberLabel">${i18n.fiveLabel}</label>
            <label class="esriAnalysisStepsLabel">${i18n.chooseExplainMatch}</label>
          </td>
          <td class="shortTextInput">
            <a href="#" class='esriFloatTrailing helpIcon' esriHelpTopic="explanatoryVariableMatching" data-dojo-attach-point="_outputLayerHelpNode"></a>
          </td>
        </tr>
        <!--Choose the explanatory variable | Component Widget-->
        <tr data-dojo-type="esri/dijit/analysis/components/AddExplanatoryFields/AddExplanatoryFields" data-dojo-attach-point="_addExplanatoryFieldsComponent">
        </tr>
        <!-- Options  -->
        <tr>
          <td colspan="3" class="optionsTd">
            <div class="optionsClose" data-dojo-attach-point="_optionsDiv">
              <table class="esriFormTable">
                <tbody>
                  <tr>
                    <td>
                      <div class="dijitTreeExpando" data-dojo-attach-event="onclick:_handleOptionsBtnClick">
                        <label class="esriLeadingMargin2 noWrapLabel">${i18n.options}</label>
                      </div>
                    </td>
                  </tr>
                </tbody>
              </table>
              <table class="esriFormTable optionsTable">
                <tbody>
                  <!-- Advanced forest options title -->
                  <tr>
                    <td colspan="3">
                      <label class="esriLeadingMargin1 esriAnalysisStepsLabel">${i18n.advancedForestOptions}</label>
                    </td>                   
                  </tr>
                  <!-- Number of trees -->
                  <tr>
                    <td colspan="3">
                      <label class="esriLeadingMargin1">${i18n.numberOfTrees}</label>
                    </td>
                    <td>
                      <input class="longInput" type="text" value="100" data-dojo-type="dijit/form/NumberTextBox" data-dojo-props="constraints:{places:0,min:1,max:10000000},intermediateChanges:true,required:false" data-dojo-attach-point="_numberOfTreesInput">
                    </td>
                    <td>
                      <a href="#" class='esriFloatTrailing helpIcon' esriHelpTopic="numberOfTrees"></a>
                    </td>                   
                  </tr>
                  <!-- Minimum leaf size -->                  
                  <tr>
                    <td colspan="3">
                      <label class="esriLeadingMargin1">${i18n.minimumLeafSize}</label>
                    </td>
                    <td>
                      <input class="longInput" type="text" data-dojo-type="dijit/form/NumberTextBox" data-dojo-props="constraints:{places:0,min:1},intermediateChanges:true,required:false" data-dojo-attach-point="_minimumLeafSizeInput">
                    </td>
                    <td>
                      <a href="#" class='esriFloatTrailing helpIcon' esriHelpTopic="minimumLeafSize"></a>
                    </td>                   
                  </tr>
                  <!-- Maximum tree depth -->                  
                  <tr>
                    <td colspan="3">
                      <label class="esriLeadingMargin1">${i18n.maximumTreeDepth}</label>
                    </td>
                    <td>
                      <input class="longInput" type="text" data-dojo-type="dijit/form/NumberTextBox" data-dojo-props="constraints:{places:0,min:1,max:30},intermediateChanges:true,required:false" data-dojo-attach-point="_maximumTreeDepthInput">
                    </td>
                    <td>
                      <a href="#" class='esriFloatTrailing helpIcon' esriHelpTopic="maximumTreeDepth"></a>
                    </td>                   
                  </tr>
                  <!-- Data available per tree (%) --> 
                  <tr>
                    <td colspan="3">
                      <label class="esriLeadingMargin1">${i18n.sampleSize}</label>
                    </td>
                    <td>
                      <input class="longInput" type="text" value="100" data-dojo-type="dijit/form/NumberTextBox" data-dojo-props="constraints:{places:0,min:1,max:100},intermediateChanges:true,required:false" data-dojo-attach-point="_sampleSizeInput">
                    </td>
                    <td>
                      <a href="#" class='esriFloatTrailing helpIcon' esriHelpTopic="sampleSize"></a>
                    </td>                   
                  </tr>
                  <!-- Number of randomly sampled variables --> 
                  <tr>
                    <td colspan="3">
                      <label>
                        <div class="esriLeadingMargin1">
                          ${i18n.randomVariables}
                        </div>
                      </label>
                    </td>
                    <td>
                      <input class="longInput" type="text" data-dojo-type="dijit/form/NumberTextBox" data-dojo-props="constraints:{places:0,min:1},intermediateChanges:true,required:false" data-dojo-attach-point="_randomVariablesInput">
                    </td>
                    <td>
                      <a href="#" class='esriFloatTrailing helpIcon' esriHelpTopic="randomVariables"></a>
                    </td>                   
                  </tr>
                  <!-- Validation options title -->
                  <tr>
                    <td colspan="3">
                      <label class="esriLeadingMargin1 esriAnalysisStepsLabel">${i18n.validationOptions}</label>
                    </td>                   
                  </tr>
                  <!-- Training data excluded for validation --> 
                  <tr>
                    <td colspan="3">
                      <label>
                        <div class="esriLeadingMargin1">
                          ${i18n.percentageForValidation}
                        </div>
                      </label>
                    </td>
                    <td>
                      <input value="10" class="longInput" type="text" data-dojo-type="dijit/form/NumberTextBox" data-dojo-props="constraints:{places:0,min:0,max:50},intermediateChanges:true,required:false" data-dojo-attach-point="_percentageForValidationInput">
                    </td>
                    <td>
                      <a href="#" class='esriFloatTrailing helpIcon' esriHelpTopic="percentageForValidation"></a>
                    </td>                   
                  </tr>                                       
                </tbody>
              </table>
            </div>
          </td>
        </tr>
        <!--Result Layer | Title-->
        <tr>
          <td colspan="2">
            <label class="esriFloatLeading esriTrailingMargin025 esriAnalysisNumberLabel" data-dojo-attach-point="_resultLayerLabel">${i18n.sixLabel}</label>
            <label class="esriAnalysisStepsLabel">${i18n.outputLayerLabel}</label>
          </td>
          <td class="shortTextInput">
            <a href="#" class='esriFloatTrailing helpIcon' esriHelpTopic="outputName" data-dojo-attach-point="_outputLayerHelpNode"></a>
          </td>
        </tr>
        <!--Result Layer | Text Box-->
        <tr>
          <td colspan="3">
            <input type="text" data-dojo-type="dijit/form/ValidationTextBox" data-dojo-props="trim:true,required:true" class="longTextInput esriLeadingMargin1" data-dojo-attach-point="_outputLayerInput"></input>
          </td>                
        </tr>
        <!--Save result in | Input Box-->
        <tr>
          <td colspan="3">
            <div class="esriLeadingMargin1" data-dojo-attach-point="_chooseFolderRow">
              <label style="font-size:smaller;">${i18n.saveResultIn}</label>
              <input class="longInput esriFolderSelect" data-dojo-attach-point="_webMapFolderSelect" data-dojo-type="dijit/form/FilteringSelect" trim="true">
            </div>
          </td>
        </tr>
        </tbody>
      </table>
    </div>
    <div class="separatorLine"></div>  
    <div data-dojo-attach-point="_fbcrToolContentButtons">
      <div class="esriExtentCreditsCtr">
        <a class="esriFloatTrailing esriSmallFont"  href="#" data-dojo-attach-point="_showCreditsLink" data-dojo-attach-event="onclick:_handleShowCreditsClick">${i18n.showCredits}</a>
        <label data-dojo-attach-point="_chooseExtentDiv" class="esriSelectLabel esriExtentLabel">
          <input type="radio" data-dojo-attach-point="_useExtentCheck" data-dojo-type="dijit/form/CheckBox" data-dojo-props="checked:true" name="extent" value="true"/>
          ${i18n.useMapExtent}
        </label>
      </div>
      <button data-dojo-type="dijit/form/Button" type="submit" data-dojo-attach-point="_saveBtn" class="esriLeadingMargin4 esriAnalysisSubmitButton" data-dojo-attach-event="onClick:_handleSaveBtnClick">
        ${i18n.runAnalysis}
      </button>
    </div>
    <div data-dojo-type="dijit/Dialog" title="${i18n.creditTitle}" data-dojo-attach-point="_usageDialog" style="width:40em;">
      <div data-dojo-type="esri/dijit/analysis/CreditEstimator"  data-dojo-attach-point="_usageForm"></div>
    </div>
    <div class="esriFormWarning esriRoundedBox" data-dojo-attach-point="_errorMessagePane" style="display:none;">
      <a href="#" title="${i18n.close}" class="esriFloatTrailing esriAnalysisCloseIcon" title='${i18n.close}' data-dojo-attach-event="onclick:_handleCloseMsg">
      </a>
      <span data-dojo-attach-point="_bodyNode"></span>
    </div>
  </div>
</div>  